import { useUserStore } from "@/stores/modules/user";
const userStore = useUserStore();
export const userFormat = ({ cellValue }: any, format = "U_ID") => {
  if (!cellValue) {
    return "";
  }
  const allUserList = userStore.getUserList;
  const findItem = allUserList.find(v => v[format] === cellValue);
  return findItem ? findItem.U_CName : "";
};
